package com.fowo.api.model.fba.shipment.product;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ContentStyle;
import com.alibaba.excel.enums.poi.HorizontalAlignmentEnum;
import com.fowo.api.common.excel.ImageConvert;
import com.fowo.api.common.validator.EnumsString;
import com.fowo.api.sys.entity.SysFile;
import java.util.List;
import javax.validation.constraints.*;
import lombok.Getter;
import lombok.Setter;

/** fba货件子表 导入导出辅助模型 */
@Getter
@Setter
public class FbaShipmentProductExcelPo {

  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "所属fba货件")
  private String parentFbaShipmentShipmentName;

  @ExcelIgnore
  @ExcelProperty(value = "所属fba货件")
  private Long parentFbaShipment;

  @Size(max = 50, message = "图片长度不能超过20")
  @ExcelProperty(value = "图片", converter = ImageConvert.class)
  private List<SysFile> img;

  @Size(max = 50, message = "MSKU长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "MSKU")
  private String msku;

  @Size(max = 50, message = "FNSKU长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "FNSKU")
  private String fnsku;

  @Size(max = 50, message = "ASIN长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "ASIN")
  private String asin;

  @Size(max = 50, message = "父Asin长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "父Asin")
  private String parentAsin;

  @Size(max = 50, message = "品名长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "品名")
  private String productNameName;

  @ExcelIgnore
  @ExcelProperty(value = "品名")
  private Long productName;

  @Size(max = 50, message = "SKU长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "SKU")
  private String sku;

  @ExcelProperty(value = "申报量")
  private Integer amountDeclared;

  @ExcelProperty(value = "已发货")
  private Integer quantityShippedLocal;

  @ExcelProperty(value = "签收量")
  private Integer quantityReceived;

  @ExcelProperty(value = "申发差异")
  private Integer shenFaDifference;

  @ExcelProperty(value = "收发差异")
  private Integer shouFaDifference;

  @ExcelProperty(value = "申收差异")
  private Integer shenShouDifference;

  @Size(max = 50, message = "发货计划长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "发货计划")
  private String shipmentPlanSn;

  @ExcelProperty(value = "计划发货量")
  private Integer planShioment;

  @ExcelProperty(value = "单箱数量")
  private Integer quantityPerCarton;

  @ExcelProperty(value = "箱数")
  private Integer cartonNumbers;

  @EnumsString(
    value = { "erp创建", "亚马逊同步" },
    message = "数据来源 0：erp创建，1：亚马逊同步的可用值为 “erp创建”, “亚马逊同步” 其中之一"
  )
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "数据来源 0：erp创建，1：亚马逊同步")
  private String isSynchronous;

  @ExcelProperty(value = "剩余发货量")
  private Integer residueSendGoods;

  @Size(max = 50, message = "title长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "title")
  private String title;

  @ExcelProperty(value = "店铺id")
  private Long shopid;

  @ExcelProperty(value = "fnsku")
  private Long fnskuId;
}
